import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
// plugins
import installPlugins from '@/plugins'
import App from './App.vue'
import router from './router'

// 全局样式
import '@/styles/index.scss'

const app = createApp(App)
installPlugins(app)
app.use(createPinia())
app.use(ElementPlus, { locale: zhCn })
app.use(router)

app.mount('#app')
